package com.summer.campussct.service;

import com.summer.campussct.pojo.VehiclePublish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.summer.campussct.pojo.dto.RestResult;
import com.summer.campussct.pojo.dto.VehicleQueryParams;

import java.math.BigDecimal;

/**
 * <p>
 * 车辆发布表 服务类
 * </p>
 *
 * @author Mr.Chen
 * @since 2024-05-10
 */
public interface IVehiclePublishService extends IService<VehiclePublish> {

    RestResult publishVehicle(long id);

    RestResult modifyPrice(Long vid, BigDecimal price);

    RestResult offlineVehicle(long id);

    RestResult rePublishVehicle(long id);

    RestResult getNewList();

    RestResult getDetails(long id);

    RestResult getCategoryData(int id);

    RestResult listByCondition(VehicleQueryParams vehicleQueryParams);

    RestResult orderCar(long id);
}
